/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package fx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pig4cloud.pig.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 龙盛小学
 *
 * @author pig code generator
 * @date 2022-11-18 09:43:32
 */
@Data
@TableName("bigdata_students")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "龙盛小学")
public class BigdataStudents extends BaseEntity {

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@Schema(description = "id")
	private Long id;

	/**
	 * 学校名称
	 */
	@Schema(description = "学校名称")
	private String schoolName;

	/**
	 * 单位代码
	 */
	@Schema(description = "单位代码")
	private Integer unitCode;

	/**
	 * 学籍号
	 */
	@Schema(description = "学籍号")
	private Integer studentNumber;

	/**
	 * 班级名称
	 */
	@Schema(description = "班级名称")
	private String className;

	/**
	 * 姓名
	 */
	@Schema(description = "姓名")
	private String name;

	/**
	 * 性别 0：男 1：女 2：保密
	 */
	@Schema(description = "性别 0：男   1：女    2：保密")
	private Integer sex;

	/**
	 * 出生日期
	 */
	@Schema(description = "出生日期")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime dateBirth;

	/**
	 * 身份证号码
	 */
	@Schema(description = "身份证号码")
	private Integer idCard;

	/**
	 * 是否留守儿童（0为“是”，1为“不是”）
	 */
	@Schema(description = "是否留守儿童（0为“是”，1为“不是”）")
	private Integer stayChildren;

	/**
	 * 学生类别
	 */
	@Schema(description = "学生类别")
	private String categoryStudents;

	/**
	 * 民族
	 */
	@Schema(description = "民族")
	private String national;

	/**
	 * 现住址
	 */
	@Schema(description = "现住址")
	private String localAddress;

	/**
	 * 户籍所在地
	 */
	@Schema(description = "户籍所在地")
	private String censusRegister;

	/**
	 * 流动人口类型
	 */
	@Schema(description = "流动人口类型")
	private String floatingPopulation;

	/**
	 * 入学方式
	 */
	@Schema(description = "入学方式")
	private String modeAdmission;

	/**
	 * 国别
	 */
	@Schema(description = "国别")
	private String country;

	/**
	 * 法定监护人姓名
	 */
	@Schema(description = "法定监护人姓名")
	private String nameGuardian;

	/**
	 * 法定监护人关系
	 */
	@Schema(description = "法定监护人关系")
	private String relationshipGuardian;

	/**
	 * 法定监护人联系电话
	 */
	@Schema(description = "法定监护人联系电话")
	private Integer guardianPhone;

	/**
	 * 法定监护人联系地址
	 */
	@Schema(description = "法定监护人联系地址")
	private String guardianAddress;

	/**
	 * 法定监护人邮政编码
	 */
	@Schema(description = "法定监护人邮政编码")
	private Integer guardianPostalCode;

}
